<h1>Adicionar Banner</h1>
<?php
echo $this->Form->create('Banner', array('action' => 'add', 'type' => 'file'));
echo $this->Form->input('nome', array('label'=>'Nome', "class"=>"form-control", 'div' => array('class'=>'form-group')));
echo $this->Form->input('link', array('label'=>'Nome', "class"=>"form-control", 'div' => array('class'=>'form-group')));
$options = array(
  1 => "Banner na página do produto",
  2 => "Banner na página principal"
);

echo $this->Form->input('categoria', array('options' => $options, "class"=>"form-control"));echo "<br/>";
echo $this->Form->file('imagem');
echo "OU";
echo $this->Form->input('codigo', array('label'=>'Código', 'type'=>'textarea', "class"=>"form-control", 'div' => array('class'=>'form-group')));

echo $this->Form->submit('Salvar', array('class' => 'btn btn-default',  'title' => 'Clique aqui para cadastrar'));
echo $this->Form->end();
?>
